package cloudPayAdmin.admin.dbapp.vo.hicatcard;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import cloudPayAdmin.util.TimeUtil;
import cloudPayAdmin.util.annotation.FenToYuanTransfer;
import cloudPayAdmin.util.annotation.StringDateFormat;

@Entity
@Table(name = "v_distributor_person")
public class VDistributorPerson {
	
	
	@Column(name = "DISTRIBUTOR_PERSON_ID")
	private Long distributorPersonId;
	
	@Column(name = "DISTRIBUTOR_ID")
	private Long distributorId;
	
	@Column(name = "USER_ID")
	private Long userId;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "CREATE_TIME")
	private String createTime;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "UPDATE_TIME")
	private String updateTime;
	
	@Column(name = "NAME")
	private String name;
	
	@FenToYuanTransfer
	@Column(name = "PAY_FEE")
	private Long payFee;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "BUY_TIME")
	private String buyTime;
	
	@Column(name = "PHONE")
	private String phone;
	
	@Column(name = "NICKNAME")
	private String nickName;
	
	@Column(name = "CARD_NAME")
	private String cardName;
	
	@StringDateFormat(oriFormat=TimeUtil.DATE_PATTERN_NOSEPARTOR,destFormat=TimeUtil.DEFAULT_DATE_PATTERN)
	@Column(name = "PROTECT_END_TIME")
	private String protectEndTime;
	
	@Column(name = "LOGIN_FLAG")
	private Long loginFlag;
	
	@Id
	@Column(name = "RANDOM_KEY")
	private String randomKey;
	
	
	

	//进入方式
	@Transient
	private String entryType;
	

	public String getRandomKey() {
		return randomKey;
	}

	public void setRandomKey(String randomKey) {
		this.randomKey = randomKey;
	}

	public String getEntryType() {
		return entryType;
	}

	public void setEntryType(String entryType) {
		this.entryType = entryType;
	}

	public String getProtectEndTime() {
		return protectEndTime;
	}

	public void setProtectEndTime(String protectEndTime) {
		this.protectEndTime = protectEndTime;
	}

	public Long getLoginFlag() {
		return loginFlag;
	}

	public void setLoginFlag(Long loginFlag) {
		this.loginFlag = loginFlag;
	}

	public Long getDistributorPersonId() {
		return distributorPersonId;
	}

	public void setDistributorPersonId(Long distributorPersonId) {
		this.distributorPersonId = distributorPersonId;
	}

	public Long getDistributorId() {
		return distributorId;
	}

	public void setDistributorId(Long distributorId) {
		this.distributorId = distributorId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getPayFee() {
		return payFee;
	}

	public void setPayFee(Long payFee) {
		this.payFee = payFee;
	}

	public String getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(String buyTime) {
		this.buyTime = buyTime;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getCardName() {
		return cardName;
	}

	public void setCardName(String cardName) {
		this.cardName = cardName;
	}
	
	
}
